package com.bjdd.jdy.ui.withdraw;

import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;
import com.bjdd.jdy.entity.BankCardBean;

import java.util.List;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/12.
 */

public interface WithDrawContract {
    interface Model extends BaseModel{
        Observable<BaseResult<List<BankCardBean>>> bankCards(String token, String carrierId);
        Observable<BaseResult<String>> withDraw(String token,String carrierId,String bankCardId,String money);
    }
    interface View extends BaseView{
        void cardBack(List<BankCardBean> data);
        void withDrawSuccess(String money);
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getCard();
        abstract void withDraw(String bankCardId,String money);
    }
}
